home *** CD-ROM | disk | FTP | other *** search
/ Software of the Month Club 1997 February / Software of the Month Club 1997 February.iso / pc / dos / edu / calc / fit1peak.bat < prev    next >
Encoding:
DOS Batch File  |  1996-10-28  |  338 b   |  11 lines

  1. calc x = {-5,5,0.1}
  2. calc y = 1.1*G((x-0.2)/1.3)+0.11+0.01*sin(3*x)
  3. rem this is an example of fitting where user has to provide 
  4. rem initial valuse for amplitude A, peak position X and width W: G(A,X,W):
  5. calc Fit(y,G(1,0,1)+0.1)
  6. @pause
  7. rem this is an example of auto-finding initial guess values:
  8. calc Fit(y,G(?))
  9. calc max(_-y)
  10.  
  11.